package com.qing.demo.netty.client;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * @author caozhipeng
 * @date 2025/7/25
 */
public class MyChannelInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel socketChannel) throws Exception {
        System.out.println("客户端链接报告开始！");
        System.out.println("客户端链接报告信息：本客户端链接到服务器。ChannelID="+socketChannel.id());
        System.out.println("客户端链接报告结束！");
    }
}
